package feeinterface.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ulwx.tool.DbUtils;
import feeinterface.modeldb.BaseBlackMyList;

public class BaseBlackMyListDao {



	public static boolean isBlackList(String IMSI) throws Exception {
//		DataBase db = DataBaseFactory.getDataBase();
		Map<Integer, Object> map = new HashMap<Integer, Object>();
		String sql = "";
		// boolean dbReconnect = false;
		sql = "SELECT * FROM BaseBlackMyList WHERE  Imsi=?";

		map.put(1, IMSI);
		List<BaseBlackMyList> list = DbUtils.doQueryClass(null,BaseBlackMyList.class,
				sql, map);
		if (list != null && list.size() >= 1) {
			return true;
		}
		return false;
	}

	public static void main(String[] args) throws Exception {
	

	}

}
